require(['jquery', 'cookie', 'app', 'lay'], function ($) {
    require(['vue'], function (Vue) {
        var dic = new Vue({
            el: ".vue-box"
            , data: {
                where: [],
                that: {

                }
            }
            , created: function () {
                this.seachs();
            }
            , methods: {
                loadPage: function () {
                    var re = playAjax("bsp/79").data;
                    var toolbar = [];
                    toolbar[0] = {
                        "clas": "",
                        "eve": "ADD",
                        "tit": "增加",
                        "fnc": function (data) {
                            window.parent.sp.showTab({id: getCode(2), name: '特殊价格设置', url: './vsp/81?specId='+new acquire().parameterMap['uuid']});
                        }
                    };
                    toolbar[1] = {
                        "clas": "layui-btn-warm",
                        "eve": "UP",
                        "tit": "修改",
                        "fnc": function (data) {
                            window.parent.sp.showTab({id: getCode(2), name: '特殊价格设置', url: './vsp/81?uuid='+data[0].uuid+'&specId='+new acquire().parameterMap['uuid']});
                        }
                    };
                    bspVIEW($(".sa-table"), "/ShopController/SpecCityList", re, this.where, toolbar);
                },
                seachs: function () {
                    this.where['shopSpec']={uuid:new acquire().parameterMap['uuid']};
                    this.where = fromName($(".el-form"));
                    this.loadPage();
                },
                referXadmin: function () {
                    window.location.reload();
                },
            }
        });
    })
});
function update(uuid) {
    window.parent.sp.showTab({id: getCode(2), name: '修改商品', url: './vsp/31?uuid='+uuid})
}
function deleted(uuid) {
    var re = playAjax("/ShopController/DelShop",{uuid:uuid});
    alr(re.msg);
    if(re.code==200){
        setTimeout(function () {
            window.reload();
        },500);
    }
}